package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMateriaDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.jsoup.Connection;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author 10161
 */
public interface  WmMaterialService extends IService<WmMaterial> {
    /**
     * 图片上传
     * @param multipartFile
     * @return
     */
    public ResponseResult uploadPicture(MultipartFile multipartFile) throws IOException;

    /**
     * 查询列表
     * @param wmMateriaDto
     * @return
     */
    public ResponseResult getList(WmMateriaDto wmMateriaDto);


    /**
     * 图片删除
     * @param id
     * @return
     */
    public ResponseResult deletePicture(Integer id);

    /**
     * 收藏
     * @param id
     * @return
     */
    public ResponseResult collect(Integer id);

    /**
     * 取消收藏
     * @param id
     * @return
     */
    public ResponseResult cancelCollect(Integer id);


}
